<!doctype html>
<html>
<head>
    <#include "include/common.header.ftl" >
    <script type="text/javascript" src="/js/location.js"></script>
    <script type="text/javascript">
      function myCheck() {
		if($("#location").val()==""){
			alert("请填写要添加的归属地名称");
			return false;
		 }
        return true;
        
      }
     
    </script>
</head>
<body style="margin: 1px">

<table id="dg" title="归属地信息" class="easyui-datagrid"
       fitColumns="true" pagination="true" rownumbers="true"
       url="/demo01/locationPage?state=25&limit=10&sort=location" fit="true" toolbar="#tb">
    <thead>
    <tr>
        <th field="cb" checkbox="true" align="center"></th>
        <th field="location" width="50" align="center" >归属地</th>
    </tr>
    </thead>
</table>
<div id="tb">
    <div>
         
    <form name="form1" action="/controll/addLocation?" method="post" onsubmit="return myCheck()" enctype="multipart/form-data">
           &nbsp;请填写:&nbsp;&nbsp;<input type="text" name="location" id="location">
               <input type="submit" value="添加归属地">
        </form>
        
    </div>
    <div>
        &nbsp;归属地:&nbsp;&nbsp;<input type="text" id="s_phoneNumber" size="20" onkeydown="if(event.keyCode==13) searchSaleChance()"/>
        <a href="javascript:searchSaleChance()" class="easyui-linkbutton" iconCls="icon-search" plain="true">搜索</a>
        <a href="javascript:deleteSaleChance()" class="easyui-linkbutton" iconCls="icon-remove" plain="true">删除</a>
    </div>
</div>
        <input type="text" id="tag" name="tag" value="0"  hidden="true"/>

</body>
</html>